package com.jinsilu.freight.http.request;

import com.hjq.http.annotation.HttpHeader;
import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestHost;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;
import com.jinsilu.freight.other.MTLConstants;

/**
 * 根据卡号获取银行卡名称
 *
 * @author yangyang
 * @time 2020-11-20 12:47
 */
public class GetBankNameApi implements IRequestHost, IRequestApi, IRequestType {

    private String bankcard;
    @HttpHeader
    private String Authorization;

    @Override
    public String getApi() {
        return "card";
    }

    @Override
    public String getHost() {
        return MTLConstants.GET_BANK_NAME_URL;
    }

    @Override
    public BodyType getType() {
        return BodyType.FORM;
    }

    public GetBankNameApi setBankcard(String bankcard) {
        this.bankcard = bankcard;
        return this;
    }

    public GetBankNameApi setAuthorization() {
        Authorization = "APPCODE 487ed6b6b2294bfab10b30ceda9431de";
        return this;
    }
}
